<template>
  <div>
    <el-card class="box-card">
      <el-form ref="form" :model="form" label-width="80px">
        <div class="formtop">
          <el-form-item label="特殊资源">
            <el-radio-group v-model="form.resource">
              <el-radio label="同比" />
              <el-radio label="环比" />
              <el-radio label="自定义" />
            </el-radio-group>
          </el-form-item>
          <el-form-item label="基准日期">
            <el-date-picker v-model="form.date1" type="date" placeholder="选择日期" style="width: 100%;" />
          </el-form-item>
          <el-form-item label="对比日期">
            <el-date-picker v-model="form.date1" type="date" placeholder="选择日期" style="width: 100%;" />
          </el-form-item>
        </div>
        <div />

        <el-form-item>
          <el-button type="primary">立即创建</el-button>
        </el-form-item>
      </el-form>
    </el-card>
  </div>
</template>
<script>
export default {
  name: 'electricityComparisonChild',
  components: {
  },
  props: {
    choseData: {
      type: Object,
      required: {}}
  },
  data() {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  },
  mounted() {

  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
 /deep/ .tableHead{
    background-color: #EDF1F8!important;
  }
.formtop{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

</style>
